package com.biostime.terminal.util;

/**
 * <p>
 * 结果code，表示结果的状态
 * </p>
 *
 * @author yangrzh 2014/6/5
 */
public interface ResultCode {

    /**
     * 通用类状态码
     */
    public interface Commons {
        /** 操作成功 */
        public static final int SUCCESS = 10000000;
        /** 操作失败，接口操作错误一般用接口对应的错误码，不使用该错误码 */
        public static final int ERROR = 10000001;
        /** 参数错误 */
        public static final int ARGS_ERROR = 10000002;
        /** 找不到结果 */
        public static final int NOT_FOUNT = 10000003;
    }

    /**
     * BaseProductService 接口状态码
     */
    public interface BaseProduct {
        /** 操作失败 */
        public static final int ERROR = 10001001;
    }

    /**
     * BrandService 接口状态码
     */
    public interface Brand {
        /** 操作失败 */
        public static final int ERROR = 10002001;
    }

    /**
     * CategoryService接口状态码
     */
    public interface Category {
        /** 操作失败 */
        public static final int ERROR = 10003001;
    }

    /**
     * CategoryThemeService接口状态码
     */
    public interface CategoryTheme {
        /** 操作失败 */
        public static final int ERROR = 10004001;
    }

    /**
     * ChannelService接口状态码
     */
    public interface Channel {
        /** 操作失败 */
        public static final int ERROR = 10005001;
    }

    /**
     * CommonGlobalValueService接口状态码
     */
    public interface CommonGlobalValue {
        /** 操作失败 */
        public static final int ERROR = 10006001;
    }

    /**
     * ProductService接口状态码
     */
    public interface Product {
        /** 操作失败 */
        public static final int ERROR = 10007001;
    }

    /**
     * PromotionService接口状态码
     */
    public interface Promotion {
        /** 操作失败 */
        public static final int ERROR = 10008001;
    }

    /**
     * SKUService接口状态码
     */
    public interface SKU {
        /** 操作失败 */
        public static final int ERROR = 10009001;
        /** SKU必须具有基础分类 */
        public static final int MUST_HAVE_BASE_CATEGORY = 10009101;
    }

    /**
     * TerminalService接口状态码
     */
    public interface Terminal {
        /** 操作失败 */
        public static final int ERROR = 10010001;
    }

    /**
     * terminalSKUService接口状态码
     */
    public interface TerminalSKU {
        /** 操作失败 */
        public static final int ERROR = 10011001;
    }

    /**
     * OnlineSKUService接口状态码
     */
    public interface OnlineSKU {
        /** 操作失败 */
        public static final int ERROR = 10012001;
    }

    /**
     * TSManagerService接口状态码
     */
    public interface TSManager {
        /** 操作失败 */
        public static final int ERROR = 10013001;
    }

    /**
     * ChargeService接口状态码
     */
    public interface Charge {
        /** 操作失败 */
        public static final int ERROR = 10014001;
    }

}
